{{ template "head" .}}


<div id="modif_password">
    <form role="form">
        <div class="modal-content">
            <div class="row">
                <div class="input-field col s6">
                    <input type="text" id="domain">
                </div>

                <div class="input-field col s6">
                    <a class="btn dropdown-button waves-effect waves-light" onclick="aaaa()">查询域名</a>
                </div>
            </div>
        </div>
    </form>
</div>


{{ template "foot" .}}
<!-- jQuery Library -->
<script type="text/javascript" src="/statics/js/plugins/jquery-1.11.2.min.js"></script>
<!--materialize js-->
<script type="text/javascript" src="/statics/js/materialize.min.js"></script>
<!--prism-->
<script type="text/javascript" src="/statics/js/plugins/prism/prism.js"></script>
<!--scrollbar-->
<script type="text/javascript" src="/statics/js/plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script>
<!-- data-tables -->
<script type="text/javascript" src="/statics/js/plugins/data-tables/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/statics/js/plugins/data-tables/data-tables-script.js"></script>
<!-- chartist -->
<script type="text/javascript" src="/statics/js/plugins/chartist-js/chartist.min.js"></script>
<script type="text/javascript" src="/statics/js/plugins.min.js"></script>
<!--custom-script.js - Add your own theme custom JS-->
<script type="text/javascript" src="/statics/js/custom-script.js"></script>
<script type="text/javascript" src="/statics/js/plugins/sweetalert/sweetalert.min.js"></script>

<script type="text/javascript">

    function aaaa() {
        $i = document.getElementById("domain").value;
        $.ajax({
            type: "post",
            url: "/tools/dns",
            data: {
                domain: $i
            },
            success: function (data) {
                swal(data)
            }
        });

    }

</script>


</body>
</html>